package com.etime.shycourse.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("adlog")
public class AdLog {
    @TableId(value = "adid", type = IdType.AUTO)
    private Long adid;
    private Long placeid;
    private String adimg;
    private Long adcourseid;
    private String adlink;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date adstart;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date adend;
    private Double adprice;
    private Double adsumprice;
    private Long adsort;
    private Long adstate;


    public Long getAdid() {
        return adid;
    }

    public void setAdid(Long adid) {
        this.adid = adid;
    }


    public Long getPlaceid() {
        return placeid;
    }

    public void setPlaceid(Long placeid) {
        this.placeid = placeid;
    }


    public String getAdimg() {
        return adimg;
    }

    public void setAdimg(String adimg) {
        this.adimg = adimg;
    }


    public Long getAdcourseid() {
        return adcourseid;
    }

    public void setAdcourseid(Long adcourseid) {
        this.adcourseid = adcourseid;
    }


    public String getAdlink() {
        return adlink;
    }

    public void setAdlink(String adlink) {
        this.adlink = adlink;
    }


    public Date getAdstart() {
        return adstart;
    }

    public void setAdstart(Date adstart) {
        this.adstart = adstart;
    }


    public Date getAdend() {
        return adend;
    }

    public void setAdend(Date adend) {
        this.adend = adend;
    }


    public Double getAdprice() {
        return adprice;
    }

    public void setAdprice(Double adprice) {
        this.adprice = adprice;
    }


    public Double getAdsumprice() {
        return adsumprice;
    }

    public void setAdsumprice(Double adsumprice) {
        this.adsumprice = adsumprice;
    }


    public Long getAdsort() {
        return adsort;
    }

    public void setAdsort(Long adsort) {
        this.adsort = adsort;
    }


    public Long getAdstate() {
        return adstate;
    }

    public void setAdstate(Long adstate) {
        this.adstate = adstate;
    }

}
